home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-03
/
qdice.zip
/
QDICE.DOC
< prev
next >
Wrap
Text File
|
1991-07-06
|
2KB
|
60 lines
QuickDice 1.0 by Jason Miller
The QuickDice library is a QuickLibrary containing functions that
simulate the rolling of various types of dice. The functions are user
friendly and need no parameters, but the following is a list of the functions
and their descriptions:
d4, d6, d8, d10, d12, d20, and d100 Functions
Syntax:
d4, d6, d8, d10, d12, d20, d100
Description: These functions return random values between 1 and 4, 6, 8,
10, 12, 20, and 100, respectively.
Examples:
To assign the value of two six-sided dice to the variable TwoSixers%:
TwoSixers = d6 + d6
To assign a value between 1 and 100 to the value PercentileDice%
PercentileDice% = d100
To assign a number between 3 and 18 to the variable Wisdom%
Wisdom% = d6 + d6 + d6
To print a value between 1 and 8
PRINT d8
AlignmentDice Function
Syntax:
AlignmentDice
Description: This function returns a random AD&D game alignment in the
form of a string. The following values are possible, and all equally
probable:
Lawful Good Lawful Neutral Lawful Evil
Lawful Neutral True Neutral Chaotic Neutral
Lawful Evil Neutral Evil Chaotic Evil
Examples:
To print a random alignment
PRINT AlignmentDice
To assign a random alignment to the variable MyAlignment$
MyAlignment$ = AlignmentDice
Use these functions all you want in your own programs. You may upload
QuickDice, disassemble it, ZIP it, use it, copy it, or do whatever you
want with it. The following are a listing of QuickDice files, and short
descriptions of what they do:
QDICE.DOC These directions
QDICE.LIB Stand-alone library file for compiling
QDICE.QLB QuickLibrary file
QDICE.BI QuickBASIC Include file for QuickDice
Many things TM, (C), (R), etc. their respective owners.